package xyz.heyaoshare.config.mybatis.entity;

import com.mybatisflex.annotation.Column;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 简单实体类
 * @author YueHe
 * @version 0.0.1
 * @since 2025/6/25 上午11:04
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SimpleEntity extends BaseEntity {

    /**
     * 逻辑删除标志
     */
    @Column(isLogicDelete = true)
    private Boolean deleted;

    /**
     * 版本号
     */
    @Column(version = true, onUpdateValue = "version + 1")
    private Long version;

}